﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ObjectModel.PowerPoint.New
{
    /// <summary>
    /// A simple text source object for testing purposes.
    /// </summary>
    public class SimpleTextSource : SourceObject
    {
        string mText;

        public SimpleTextSource() { } // Parameterless constructor required for deserialization.

        public SimpleTextSource(string text)
        {
            Text = text;
        }

        public string Text
        {
            get { return mText; }
            set
            {
                mText = value;
                OnPropertyChanged("Text");
            }
        }

        public override string GetValue()
        {
            return Text;
        }
    }
}
